package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 未认证返回前端信息
 * @Author: WD created on 2021-09-20 10:48
 * @Version:
 */
@RestController
public class UnAuthController {

    @RequestMapping("unauthc")
    public BaseRespVo<String> return302(){

        BaseRespVo<String> respVo = new BaseRespVo<>();
        respVo.setErrmsg("请重新登录！");
        respVo.setErrno(501);
        return respVo;
    }
}
